<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class NoticeMessage extends Model
{
    protected $table = 'v_notice_message';

    protected $fillable = ['notice_id', 'message_id'];

    // 消息
    public function message()
    {
        return $this->belongsTo('App\Models\Message', 'message_id', 'id');
    }

}
